﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>轨迹回放</title>

    
<style type="text/css">
body, html, #map{
    margin:0px;
    width: 100%;
    height: 100%;
}
</style> 
   
   <script type="text/javascript" src="js/key.js"></script>
<script type="text/javascript">
//<![CDATA[
           loadGoogleJS();
//window.onload = function(){loadGoogleJS()};
//]]>
</script> 
   
 
              <script type="text/javascript" src="js/gmaps/popupmarker.js"></script>
                <script type="text/javascript" src="js/myjsframe.js"></script>
                <script type="text/javascript" src="js/maps.js"></script>
                <script type="text/javascript" src="js/historyMap.js"></script>
    <script type="text/javascript">

        
    function load() {
      if (GBrowserIsCompatible()) {	     

       var  command = parent.document.getElementById("command").value;
       parent.document.getElementById("command").value = (command == "开始回放" ? "停止" : "开始回放");
       if(command == "停止")	{  
//alert("stop track!");
    	   window.clearInterval(intervalID2);
           return;
       }

       //alert(parent.document.getElementById("from").value);
       //alert(lastTime);
       if(initFrom != parent.document.getElementById("from").value){
           //alert(from  + "--" + parent.document.getElementById("from").value);
       		reset();
       }
 //      alert("sdfds");
 to = parent.document.getElementById("to").value;
 freq = parent.document.getElementById("freq").value
 //while(from != to){
       ajaxRequest();
 //}
 /*
       
       
 
           intervalID=window.setInterval(function() {    
        	   from = parent.document.getElementById("from").value;
        	   ajaxRequest();
        	          	   
        		if(pointNum == 50){
           	  				GUnload();
  
           	  		}           }, 10000);*/
        }
      }
    
    //]]>
    </script>
    


  </head>

  <body onunload="GUnload()">


    <div id="map" ></div>


  </body>     
</html>
<script type="text/javascript">
parent.document.getElementById("command").disabled = false;
</script>